package tools

import (
	"crypto/md5"
	"encoding/hex"
)

func GenMd5Code(input []byte) string {
	handler := md5.New()
	handler.Write(input)
	bs := handler.Sum(nil)
	return hex.EncodeToString(bs)
}
